import 'package:fhare/fhare.dart';
import 'package:flutter_test/flutter_test.dart';

String _test2 = """
    aa = [,]
    ab=[1,2,3,,]
    ls:[    1,
    2;
    3    ,
    ],
    entao:{
        name:entao;
        addr={prov:shandong;city:jinan}
        sex:male
        a:b
        c:d
    }
    host= entao.dev\\  ;
    port = 80 ;
    yang.en.tao = 999
    entao.name=yang
    tao=
    a=
    b=2
    c=
    
    d=2
    
""";

void main() {
  test('enconfig-map', () {
    var map = EnConfig.parse(_test2);
    printX(map.getPathValue(key: "entao.name"));
    printX("-------");
    printX(map);
  });
  test('enconfig-array', () {
    String s = """[1,2,3, {name:yang}]""";
    var arr = EnConfig.parse(s);
    printX(arr);
  });
}
